import request from '@/utils/request'

// 查询房屋绑定列表
export function listPropertyBinding(query) {
  return request({
    url: 'pms/aplly/list',
    method: 'get',
    params: query
  })
}

// 新增房屋绑定
export function addPropertyBinding(data) {
  return request({
    url: 'pms/aplly/add',
    method: 'post',
    data: data
  })
}

// 编辑房屋绑定
export function updatePropertyBinding(data) {
  return request({
    url: 'pms/aplly/edit',
    method: 'put',
    data: data
  })
}

// 审核
export function checkPropertyBinding(data) {
  return request({
    url: 'pms/aplly/check',
    method: 'put',
    data: data
  })
}

// 删除房屋绑定
export function delPropertyBinding(id) {
  return request({
    url: 'pms/aplly/' + id,
    method: 'delete',
    params: { id }
  })
}
